package com.googlethemebuilder;

public class Test {
	public void output() {
		String[] colors = {"0000ff","002aff","0054ff","007fff","00a9ff","00d4ff","00feff","00ff00","00ff2a","00ff55","00ff7f","00ffaa","00ffd4","2a00ff","2aff00","54ff00","5500ff","7f00ff","7fff00","9c785e","a9ff00","aa00ff","c6bda5","d400ff","d4ff00","feff00","ff0000","ff002a","ff0054","ff007f","ff00a9","ff00d4","ff00fe","ff2a00","ff5500","ff7f00","ffaa00","ffd400","ffffff"};
		for (String color : colors) {
			System.out.println("public static final String[] GROUP_" + color + " = {ButtonIcon.MENU_" + color + ",ButtonIcon.MENU_HOVER_" + color + ",ButtonIcon.DELETE_" + color + ",ButtonIcon.DELETE_HOVER_" + color + ",ButtonIcon.COLLAPSE_" + color + ",ButtonIcon.COLLAPSE_HOVER_" + color + ",ButtonIcon.EXPAND_" + color + ",ButtonIcon.EXPAND_HOVER_" + color + "};");
		}
	}
	
	public static void main(String[] args) {
		Theme theme = new Theme();
		
		Metadata metadata = new Metadata();
		metadata.setAuthor("Hong Wu");
		metadata.setAuthorEmail("lordhong@gmail.com");
		metadata.setDescription("theme description");
		metadata.setScreenshot("http://www.domain.com/screenshot.jpg");
		metadata.setThumbnail("http://www.domain.com/thumbnail.jpg");
		metadata.setTitle("Theme Title");
		
		theme.setMetadata(metadata);
		
		ConfigMap configMap = new ConfigMap();
		Trait trait = new Trait();
		trait.setTimeOfDay("12am", "6am");
		configMap.addTrait(trait);
		trait.setTimeOfDay("12pm", "6pm");
		configMap.addTrait(trait);
		
		configMap.setHeaderBackgroundColor("#000000");
		configMap.setHeaderTileImageUrl("http://www.mysite.com/theme/header_tile2.jpg");
		configMap.setHeaderCenterImageUrl("http://www.mysite.com/theme/header_center2.jpg");
		configMap.setHeaderLinkColor(Color.WHITE);
		configMap.setHeaderTextColor(Color.MAROON);
		configMap.setHeaderLogo(IGoogleLogo.BEVELED_PURPLERED);
		configMap.setGadgetAreaTabBorderColor(Color.FUCHSIA);
		configMap.setGadgetAreaTabSelectedBackgroundColor(Color.AQUA);
		configMap.setGadgetAreaTabSelectedTextColor("#c0430a");
		configMap.setGadgetAreaTabUnselectedBackgroundColor(Color.GREEN);
		configMap.setGadgetAreaTabUnselectedTextColor(Color.NAVY);
		configMap.setGadgetAreaBorderColor("#ffffff");
		configMap.setGadgetAreaGadgetHeaderBackgroundColor(Color.RED);
		configMap.setGadgetAreaGadgetHeaderTextColor("#c0430a");
		configMap.setGadgetAreaGadgetBorderColor("#bbbbbb");
		configMap.setGadgetAreaGadgetBodyLinkColor("#666666");
		configMap.setButtonIconGroup(ButtonIcon.GROUP_2aff00);
		configMap.setFooterBackgroundColor("#ffffff");
		configMap.setFooterTileImageUrl("http://www.mysite.com/theme/footer_tile2.jpg");
		configMap.setFooterCenterImageUrl("http://www.mysite.com/theme/footer_tile2.jpg");	
		configMap.setFooterLinkColor(Color.YELLOW);
		configMap.setFooterTextColor(Color.PURPLE);
		configMap.setAttributionImageUrl("http://www.mysite.com/theme/attribution.jpg");
		
		theme.addConfigMap(configMap);
		
		configMap = new ConfigMap();
		trait = new Trait();
		trait.setTimeOfDay("6am", "12pm");
		configMap.addTrait(trait);
		
		configMap.setHeaderBackgroundColor("#0000FF");
		configMap.setHeaderTileImageUrl("http://www.mysite.com/theme/header_tile2.jpg");
		configMap.setHeaderCenterImageUrl("http://www.mysite.com/theme/header_center2.jpg");
		configMap.setHeaderLinkColor(Color.FUCHSIA);
		configMap.setHeaderTextColor(Color.RED);
		configMap.setHeaderLogo(IGoogleLogo.PURPLERED);
		configMap.setGadgetAreaTabBorderColor(Color.GREEN);
		configMap.setGadgetAreaTabSelectedBackgroundColor(Color.MAROON);
		configMap.setGadgetAreaTabSelectedTextColor("#c0430a");
		configMap.setGadgetAreaTabUnselectedBackgroundColor(Color.GREEN);
		configMap.setGadgetAreaTabUnselectedTextColor(Color.NAVY);
		configMap.setGadgetAreaBorderColor("#ffffff");
		configMap.setGadgetAreaGadgetHeaderBackgroundColor(Color.RED);
		configMap.setGadgetAreaGadgetHeaderTextColor("#c0430a");
		configMap.setGadgetAreaGadgetBorderColor("#bbbbbb");
		configMap.setGadgetAreaGadgetBodyLinkColor("#666666");
		configMap.setButtonIconGroup(ButtonIcon.GROUP_ffd400);
		configMap.setFooterBackgroundColor("#ffffff");
		configMap.setFooterTileImageUrl("http://www.mysite.com/theme/footer_tile2.jpg");
		configMap.setFooterCenterImageUrl("http://www.mysite.com/theme/footer_tile2.jpg");	
		configMap.setFooterLinkColor(Color.YELLOW);
		configMap.setFooterTextColor(Color.PURPLE);
		configMap.setAttributionImageUrl("http://www.mysite.com/theme/attribution.jpg");
		
		theme.addConfigMap(configMap);
		try {
			System.out.println(theme.generateTheme());
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
}
